<script>
/*
 * @Author: wzh 
 * @Date: 2021-01-16 14:12:38 
 * @Last Modified by: 1521620993@qq.com
 * @Last Modified time: 2021-01-16 14:25:36
 */
</script>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>04-2D变换-变形</title>
  <style>
    .box {
      width: 350px;
      background-color: wheat;
      padding: 5px;
    }
    .item {
      width: 50px;
      height: 50px;
      background-color: red;
      margin-bottom: 10px;
      font-size: 16px;
      color: #fff;
      text-align: center;
      line-height: 50px;
      transition: 1s transform;
    }
    .item1:active {
      transform: skewX(30deg);
    }
    .item2:active {
      transform: skewX(-30deg);
    }
    .item3:active {
      transform: skewY(30deg);
    }
    .item4:active {
      transform: skewY(-30deg);
    }
    .item5:active {
      transform: skew(30deg, 30deg);
    }
    .item6:active {
      transform: skew(-30deg, -30deg);
    }
  </style>
</head>
<body>
  <div class="box">
    <div class="item item1">1</div>
    <div class="item item2">2</div>
    <div class="item item3">3</div>
    <div class="item item4">4</div>
    <div class="item item5">5</div>
    <div class="item item6">6</div>
  </div>
</body>
</html>